package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 宠物信息对象 t_pet
 *
 * @author ruoyi
 * @date 2023-10-28
 */
@TableName("t_pet")
@Data
public class Pet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 是否默认 */
    @Excel(name = "是否默认")
    private String isDeafult;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long saleNumber;

    /** 宠物地址 */
    @Excel(name = "宠物地址")
    private String petUrl;

    /** 是否可用 0可用，1不可用 */
    @Excel(name = "是否可用 0可用，1不可用")
    private String isEnable;

    /** 宠物昵称 */
    @Excel(name = "宠物昵称")
    private String petName;

    /** 商品代码 */
    @Excel(name = "商品代码")
    private String code;

    private String xloc;

    private String yloc;

    private String idle;

    private String motions;

    private String version;

    private String json;

    private String model;

    private String  textures;

    private Double modelX;

    private Double modelY;

    private Double modelWidth;

    private String appKey;

    private String baseUrl;

    private String apiKey;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public void setIsDeafult(String isDeafult)
    {
        this.isDeafult = isDeafult;
    }

    public String getIsDeafult()
    {
        return isDeafult;
    }
    public void setSaleNumber(Long saleNumber)
    {
        this.saleNumber = saleNumber;
    }

    public Long getSaleNumber()
    {
        return saleNumber;
    }
    public void setPetUrl(String petUrl)
    {
        this.petUrl = petUrl;
    }

    public String getPetUrl()
    {
        return petUrl;
    }
    public void setIsEnable(String isEnable)
    {
        this.isEnable = isEnable;
    }

    public String getIsEnable()
    {
        return isEnable;
    }
    public void setPetName(String petName)
    {
        this.petName = petName;
    }

    public String getPetName()
    {
        return petName;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("isDeafult", getIsDeafult())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("saleNumber", getSaleNumber())
            .append("petUrl", getPetUrl())
            .append("isEnable", getIsEnable())
            .append("petName", getPetName())
            .append("code", getCode())
            .append("id", getId())
            .toString();
    }
}
